import request from '@/utils/request';

export async function getInspectionFileInfoByPage (params: any) {
    return request('/api/quality/getInspectionFileInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addInspectionFileInfo (params: any) {
    return request('/api/quality/addInspectionFileInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateInspectionFileInfo (params: any) {
    return request('/api/quality/updateInspectionFileInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delInspectionFileInfo (params: any) {
    return request('/api/quality/delInspectionFileInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportInspectionFileInfo(params: any) {
    return request('/api/quality/exportInspectionFileInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getInspectionFileInfoByPage, addInspectionFileInfo, updateInspectionFileInfo, delInspectionFileInfo, exportInspectionFileInfo }
